// RenameDlg.cpp : implementation file
//

#include "../stdafx.h"
#include "RenameDlg.h"


// CRenameDlg dialog

IMPLEMENT_DYNAMIC(CRenameDlg, CDialog)

CRenameDlg::CRenameDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CRenameDlg::IDD, pParent)
{

}

CRenameDlg::~CRenameDlg()
{
}

void CRenameDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Control(pDX, IDC_EDIT1, m_wndText);
	DDX_Control(pDX, IDC_EDIT12, m_wndInfo);
}


BEGIN_MESSAGE_MAP(CRenameDlg, CDialog)
	ON_BN_CLICKED(IDOK, &CRenameDlg::OnBnClickedOk)
END_MESSAGE_MAP()


// CRenameDlg message handlers

void CRenameDlg::OnBnClickedOk()
{
	m_wndText.GetWindowText(m_text);
	// TODO: Add your control notification handler code here
	OnOK();
}

BOOL CRenameDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO:  Add extra initialization here
	SetWindowText(m_title);
	m_wndInfo.SetWindowText(m_info);
	m_wndText.SetWindowText(m_text);

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}
